import * as types from "../action-types";
import { getSliders } from "../../server/home"

export default {
    changeCategroy(category) {
        return {
            type: types.CHANG_CATEGORY, payload: category
        }
    },
    getSliders() {
        return function(dispatch,getState){
            getSliders().then(res=>{
                dispatch({
                    type:"SET_HOME_SLIDERS",
                    payload: res.activityBanner
                })
            })
        }
        

    }
}